num=set()
for i in range(100,1000):
    a=i//100
    b=(i-a*100)//10
    c=i-a*100-b*10
    if i==a**3+b**3+c**3:
        num.add(str(i))
x=','.join(num)
print("阿萨\n")
print("所有数",x)